
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>CI/CD · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    
    <link rel="prev" href="untitled.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    简介页
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="arcgis-api-for-javascript4.x/">
            
                <a href="arcgis-api-for-javascript4.x/">
            
                    
                    ArcGIS API for JavaScript4.x
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="arcgis-api-for-javascript4.x/xue-xi-he-kai-fa-ji-qiao.html">
            
                <a href="arcgis-api-for-javascript4.x/xue-xi-he-kai-fa-ji-qiao.html">
            
                    
                    学习技巧
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="arcgis-api-for-javascript4.x/kai-fa-ji-qiao.html">
            
                <a href="arcgis-api-for-javascript4.x/kai-fa-ji-qiao.html">
            
                    
                    开发技巧
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="arcgis-api-for-javascript4.x/mapimagelayer.html">
            
                <a href="arcgis-api-for-javascript4.x/mapimagelayer.html">
            
                    
                    MapImageLayer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="arcgis-api-for-javascript4.x/featurelayer.html">
            
                <a href="arcgis-api-for-javascript4.x/featurelayer.html">
            
                    
                    FeatureLayer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="arcgis-api-for-javascript4.x/graphiclayer.html">
            
                <a href="arcgis-api-for-javascript4.x/graphiclayer.html">
            
                    
                    GraphicLayer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="arcgis-api-for-javascript4.x/renderer.html">
            
                <a href="arcgis-api-for-javascript4.x/renderer.html">
            
                    
                    Renderer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="arcgis-api-for-javascript4.x/symbol.html">
            
                <a href="arcgis-api-for-javascript4.x/symbol.html">
            
                    
                    2DSymbol
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.8" data-path="arcgis-api-for-javascript4.x/di-tu-shi-jian.html">
            
                <a href="arcgis-api-for-javascript4.x/di-tu-shi-jian.html">
            
                    
                    地图事件之地图状态监听
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.9" data-path="arcgis-api-for-javascript4.x/di-tu-shi-jian-zhi-dian-ji.html">
            
                <a href="arcgis-api-for-javascript4.x/di-tu-shi-jian-zhi-dian-ji.html">
            
                    
                    地图事件之点击
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.10" data-path="arcgis-api-for-javascript4.x/mo-ni-dian-yun-dong-tu-ceng.html">
            
                <a href="arcgis-api-for-javascript4.x/mo-ni-dian-yun-dong-tu-ceng.html">
            
                    
                    模拟点运动图层
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.11" data-path="arcgis-api-for-javascript4.x/untitled.html">
            
                <a href="arcgis-api-for-javascript4.x/untitled.html">
            
                    
                    集成echarts实现迁徙图特效
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.12" data-path="arcgis-api-for-javascript4.x/shi-xian-dian-ju-he-xiao-guo.html">
            
                <a href="arcgis-api-for-javascript4.x/shi-xian-dian-ju-he-xiao-guo.html">
            
                    
                    实现点聚合效果
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="arcgis-api-for-javascript3.x.html">
            
                <a href="arcgis-api-for-javascript3.x.html">
            
                    
                    ArcGIS API for JavaScript3.x
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="vue.html">
            
                <a href="vue.html">
            
                    
                    VUE
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="docker/">
            
                <a href="docker/">
            
                    
                    Docker
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="docker/docker-shi-yong-nginx-dai-li-zhuan-fa-ssr.html">
            
                <a href="docker/docker-shi-yong-nginx-dai-li-zhuan-fa-ssr.html">
            
                    
                    Docker使用Nginx代理转发SSR
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="docker/docker-da-jian-ge-ren-wordpress-wang-zhan.html">
            
                <a href="docker/docker-da-jian-ge-ren-wordpress-wang-zhan.html">
            
                    
                    Docker搭建个人wordpress网站
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="docker/docker-an-zhuang.html">
            
                <a href="docker/docker-an-zhuang.html">
            
                    
                    Docker安装
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="nginx.html">
            
                <a href="nginx.html">
            
                    
                    Nginx
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="untitled.html">
            
                <a href="untitled.html">
            
                    
                    小技巧
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.8" data-path="ci-cd.html">
            
                <a href="ci-cd.html">
            
                    
                    CI/CD
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >CI/CD</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="cicd">CI/CD</h1>
<h2 id="&#x7B80;&#x8FF0;">&#x7B80;&#x8FF0;</h2>
<p>gitbook&#x662F;&#x4F9D;&#x8D56;&#x4E8E;nodejs&#x7684;&#x5DE5;&#x5177;&#x5305;&#xFF0C;&#x53EF;&#x4EE5;&#x5C06;markdown&#x6587;&#x6863;&#x5904;&#x7406;&#x4E3A;html&#x7F51;&#x9875;&#x8FDB;&#x884C;&#x53D1;&#x5E03;&#x3002;gitbook&#x5904;&#x7406;&#x540E;&#x7684;&#x6587;&#x6863;&#xFF0C;&#x7B14;&#x8BB0;&#x6548;&#x679C;&#x5F88;&#x597D;&#xFF0C;&#x6761;&#x7406;&#x6E05;&#x695A;&#xFF0C;&#x9875;&#x9762;&#x7F8E;&#x89C2;&#x3002;&#x4F46;&#x662F;markdown&#x6587;&#x6863;&#x64B0;&#x5199;&#x4E0D;&#x65B9;&#x4FBF;&#xFF0C;&#x6CA1;&#x6709;&#x4EA4;&#x4E92;&#x5F0F;&#x7684;&#x4F53;&#x9A8C;&#x3002;&#x540E;&#x6765;&#x53BB;&#x4E86;gitbook&#x7684;&#x5B98;&#x7F51;&#xFF0C;&#x5728;&#x8FD9;&#x4E0A;&#x9762;&#x5FEB;&#x901F;&#x65B9;&#x4FBF;&#x7684;&#x64B0;&#x5199;&#xFF0C;&#x6548;&#x7387;&#x5F88;&#x9AD8;&#xFF0C;&#x5E76;&#x4E14;&#x53EF;&#x4EE5;&#x540C;&#x6B65;&#x5230;github&#x4E0A;&#x9762;&#x53BB;&#x3002;&#x4F46;&#x662F;&#x7531;&#x4E8E;gitbook&#x9700;&#x8981;&#x79D1;&#x5B66;&#x4E0A;&#x7F51;&#x624D;&#x80FD;&#x8BBF;&#x95EE;&#xFF0C;&#x5199;&#x7684;&#x6587;&#x6863;&#x9700;&#x8981;&#x540C;&#x6B65;&#x90E8;&#x7F72;&#x5230;&#x56FD;&#x5185;&#x9700;&#x8981;CI/CD&#x7684;&#x652F;&#x6301;&#x3002;</p>
<h2 id="&#x4E00;&#x3001;gitbook&#x6CE8;&#x518C;&#x4E0E;&#x4F7F;&#x7528;&#x5E76;&#x7ED1;&#x5B9A;github&#x8D26;&#x53F7;&#xFF08;&#x79D1;&#x5B66;&#x4E0A;&#x7F51;&#xFF09;">&#x4E00;&#x3001;gitbook&#x6CE8;&#x518C;&#x4E0E;&#x4F7F;&#x7528;&#x5E76;&#x7ED1;&#x5B9A;github&#x8D26;&#x53F7;&#xFF08;&#x79D1;&#x5B66;&#x4E0A;&#x7F51;&#xFF09;</h2>
<p>&#x5B98;&#x7F51;<a href="https://app.gitbook.com" target="_blank">https://app.gitbook.com</a>&#xFF0C;&#x6CE8;&#x518C;&#x540E;&#x7ED1;&#x5B9A;github&#x8D26;&#x53F7;&#x5373;&#x53EF;</p>
<p><img src=".gitbook/assets/wei-xin-jie-tu-20190929173440.png" alt=""></p>
<h2 id="&#x4E8C;&#x3001;github&#x914D;&#x7F6E;">&#x4E8C;&#x3001;github&#x914D;&#x7F6E;</h2>
<p><img src=".gitbook/assets/image%20%2810%29.png" alt=""></p>
<p>webhook&#x662F;github&#x5BF9;&#x5916;&#x901A;&#x4FE1;&#x7684;&#x63D2;&#x4EF6;&#xFF0C;&#x6B64;&#x9879;&#x76EE;&#x7ED1;&#x5B9A;&#x4E24;&#x4E2A;webhook&#xFF0C;&#x4E00;&#x4E2A;&#x662F;gitbook&#x7684;&#x5B98;&#x7F51;&#xFF0C;&#x4E00;&#x4E2A;&#x662F;&#x4F60;&#x6240;&#x9700;&#x8981;&#x901A;&#x77E5;&#x66F4;&#x6539;&#x7684;&#x670D;&#x52A1;&#x5668;&#x3002;&#x4E0A;&#x9762;&#x7684;&#x90A3;&#x4E2A;&#x5728;&#x7B2C;&#x4E00;&#x6B65;&#x540E;&#x4F1A;&#x81EA;&#x52A8;&#x751F;&#x6210;&#xFF0C;&#x4E0B;&#x9762;&#x7684;&#x9700;&#x8981;&#x81EA;&#x5DF1;&#x53BB;&#x52A0;&#xFF0C;&#x5E76;&#x4E14;&#x9700;&#x8981;secret&#x7C7B;&#x4F3C;&#x5BC6;&#x94A5;&#x3002;&#x53EA;&#x6709;&#x643A;&#x5E26;secret&#x7684;&#x8BBF;&#x95EE;&#x624D;&#x4F1A;&#x89E6;&#x53D1;&#x670D;&#x52A1;&#x5668;&#x4E0A;&#x9762;&#x7684;&#x8FDB;&#x7A0B;&#x3002;</p>
<p><img src=".gitbook/assets/image%20%287%29.png" alt=""></p>
<h2 id="&#x4E09;&#x3001;&#x670D;&#x52A1;&#x5668;&#x914D;&#x7F6E;">&#x4E09;&#x3001;&#x670D;&#x52A1;&#x5668;&#x914D;&#x7F6E;</h2>
<p>&#x53C2;&#x8003;&#x8D44;&#x6599;<a href="https://segmentfault.com/a/1190000016071010" target="_blank">https://segmentfault.com/a/1190000016071010</a></p>
<p>&#x5F53;github&#x4E0A;&#x9762;&#x7684;&#x4EE3;&#x7801;&#x89E6;&#x53D1;push&#x52A8;&#x4F5C;&#x540E;&#xFF0C;&#x8C03;&#x7528;webhook&#x5411;&#x5916;&#x53D1;&#x901A;&#x77E5;&#x3002;&#x56E0;&#x6B64;&#xFF0C;&#x670D;&#x52A1;&#x5668;&#x8981;&#x5B9E;&#x65F6;&#x7684;&#x76D1;&#x542C;github&#x7ED9;&#x5B83;&#x7684;&#x4FE1;&#x606F;&#xFF0C;&#x9700;&#x8981;&#x4F7F;&#x7528;github-webhook-handler&#x8FDB;&#x884C;&#x5B9E;&#x65F6;&#x7684;&#x76D1;&#x542C;&#x3002;&#x540C;&#x65F6;&#x4E5F;&#x9700;&#x8981;pm2&#x8FDB;&#x884C;&#x5B88;&#x62A4;&#x8FDB;&#x7A0B;&#x3002;&#x8FD9;&#x4E24;&#x4E2A;&#x5DE5;&#x5177;&#x90FD;&#x9700;&#x8981;nodejs&#x7684;&#x652F;&#x6301;&#xFF0C;&#x56E0;&#x6B64;&#x9700;&#x8981;&#x63D0;&#x524D;&#x5B89;&#x88C5;node&#x73AF;&#x5883;&#x3002;</p>
<p>&#x5B89;&#x88C5;webhook&#x7684;&#x76D1;&#x542C;</p>
<pre><code>npm i -g github-webhook-handler
</code></pre><p>&#x65B0;&#x5EFA;&#x4E00;&#x4E2A;webhook.js&#x7684;&#x6587;&#x4EF6;</p>
<pre><code class="lang-text">var http = require(&apos;http&apos;)
var createHandler = require(&apos;github-webhook-handler&apos;)
var handler = createHandler({ path: &apos;/&apos;, secret: &apos;****&apos; })
// &#x4E0A;&#x9762;&#x7684; secret &#x4FDD;&#x6301;&#x548C; GitHub &#x540E;&#x53F0;&#x8BBE;&#x7F6E;&#x7684;&#x4E00;&#x81F4;
function run_cmd(cmd, args, callback) {
  var spawn = require(&apos;child_process&apos;).spawn;
  var child = spawn(cmd, args);
  var resp = &quot;&quot;;
  child.stdout.on(&apos;data&apos;, function(buffer) { resp += buffer.toString(); });
  child.stdout.on(&apos;end&apos;, function() { callback (resp) });
}
http.createServer(function (req, res) {
  handler(req, res, function (err) {
    res.statusCode = 404
    res.end(&apos;no such location&apos;)
  })
}).listen(7777)
handler.on(&apos;error&apos;, function (err) {
  console.error(&apos;Error:&apos;, err.message)
})
handler.on(&apos;push&apos;, function (event) {
  console.log(&apos;Received a push event for %s to %s&apos;,
    event.payload.repository.name,
    event.payload.ref);
    run_cmd(&apos;sh&apos;, [&apos;./deploy.sh&apos;,event.payload.repository.name], function(text){ console.log(text) });
})
</code></pre>
<p>&#x4E0A;&#x9762;&#x7684;&#x6587;&#x4EF6;&#x662F;&#x76D1;&#x542C;&#x7684;&#x5904;&#x7406;&#x6587;&#x4EF6;&#xFF0C;&#x662F;&#x4E00;&#x4E2A;&#x9759;&#x6001;&#x7684;js&#x811A;&#x672C;&#x6587;&#x4EF6;&#xFF0C;&#x662F;&#x5BF9;github&#x7684;webhook&#x7684;&#x5904;&#x7406;&#xFF0C;&#x5982;&#x679C;&#x54CD;&#x5E94;&#x6210;&#x529F;&#xFF0C;&#x4F1A;&#x6267;&#x884C;&#x540C;&#x4E00;&#x4E2A;&#x76EE;&#x5F55;&#x4E0B;&#x7684;shell&#x811A;&#x672C;deploy.sh&#x3002;&#x56E0;&#x6B64;&#x9700;&#x8981;&#x5728;&#x540C;&#x4E00;&#x4E2A;&#x76EE;&#x5F55;&#x4E0B;&#x65B0;&#x5EFA;&#x4E00;&#x4E2A;deploy.sh&#x6587;&#x4EF6;</p>
<pre><code class="lang-text">#!/bin/bash
# &#x7F51;&#x7AD9;&#x7684;&#x6839;&#x76EE;&#x5F55;
WEB_PATH=&apos;/home/wwwroot/domain.com&apos;

echo &quot;start deployment&quot;
cd $WEB_PATH
echo &quot;fetching from remote...&quot;
# &#x4E3A;&#x4E86;&#x907F;&#x514D;&#x51B2;&#x7A81;&#xFF0C;&#x5F3A;&#x5236;&#x66F4;&#x65B0;&#x672C;&#x5730;&#x6587;&#x4EF6;
git fetch --all
git reset --hard origin/master
echo &quot;done&quot;
</code></pre>
<p>&#x4E0A;&#x8FF0;&#x7684;WEB_PATH&#x662F;git&#x9879;&#x76EE;&#x7684;&#x8DEF;&#x5F84;&#xFF0C;</p>
<p>&#x6CE8;&#x610F;&#xFF1A;shell&#x811A;&#x672C;&#x7684;&#x683C;&#x5F0F;&#x95EE;&#x9898;&#xFF0C;&#x5148;&#x6267;&#x884C;sed -i &apos;s/\r$//&apos; deploy.sh&#x8FDB;&#x884C;&#x683C;&#x5F0F;&#x5316;&#x3002;</p>
<p>&#x6CE8;&#x610F;&#xFF1A;&#x8981;&#x521D;&#x59CB;&#x5316;&#x62C9;&#x53D6;&#x4E00;&#x4E0B;&#x4EE3;&#x7801;&#xFF0C;&#x7ED1;&#x5B9A;git&#x3002;</p>
<p>&#x4F7F;&#x7528;pm2&#x5B88;&#x62A4;&#x8FDB;&#x7A0B;</p>
<p>&#x5B89;&#x88C5;pm2&#xFF1A;</p>
<pre><code class="lang-text">npm i pm2 -g
</code></pre>
<p>&#x8FD0;&#x884C;webhook.js</p>
<pre><code class="lang-text">pm2 start webhook.js
</code></pre>
<h2 id="&#x56DB;&#x3001;&#x7F51;&#x9875;&#x53D1;&#x5E03;">&#x56DB;&#x3001;&#x7F51;&#x9875;&#x53D1;&#x5E03;</h2>
<p>&#x524D;&#x6BB5;&#x65F6;&#x95F4;&#xFF0C;github&#x652F;&#x6301;CI/CD&#xFF0C;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x5728;.github/workflow&#x6587;&#x4EF6;&#x76EE;&#x5F55;&#xFF0C;&#x4E0B;&#x7F16;&#x5199;yaml&#x6587;&#x4EF6;&#xFF0C;&#x6267;&#x884C;cicd&#x3002;&#x5982;&#x4E0B;</p>
<pre><code class="lang-text">name: Node CI

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest

    strategy:
      matrix:
       # node-version: [8.x, 10.x, 12.x]
        node-version: [12.x]

    steps:
    - uses: actions/checkout@v1
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v1
      with:
        node-version: ${{ matrix.node-version }}
    - name: npm install, build, and test
      run: |
        npm install
        npm install -g gitbook-cli
        gitbook init
        gitbook build .
      env:
        CI: true
</code></pre>
<p>&#x4E0A;&#x8FF0;&#x6587;&#x4EF6;&#x53EF;&#x4EE5;&#x5C06;markdown&#x6587;&#x6863;&#x81EA;&#x52A8;&#x6784;&#x5EFA;&#x4E3A;&#x7F51;&#x9875;&#xFF0C;&#x4F46;&#x662F;&#x5C06;gitbook build&#x7684;&#x7ED3;&#x679C;&#x8FDB;&#x884C;&#x6301;&#x7EED;&#x53D1;&#x5E03;&#x65F6;&#xFF0C;&#x672A;&#x80FD;&#x627E;&#x5230;&#x76F8;&#x5173;&#x7684;&#x6587;&#x6863;&#x3002;&#x5352;&#x3002;&#x3002;&#x3002;</p>
<p>&#x56E0;&#x6B64;&#xFF0C;&#x53EA;&#x80FD;&#x5728;&#x672C;&#x5730;&#x5B89;&#x88C5;gitbook&#xFF0C;&#x901A;&#x8FC7;gitbook build&#x547D;&#x4EE4;&#xFF0C;&#x5728;&#x6587;&#x4EF6;&#x76EE;&#x5F55;&#x4E0B;&#x751F;&#x6210;html&#x6587;&#x4EF6;&#xFF0C;&#x4E0A;&#x4F20;&#x5230;&#x9879;&#x76EE;&#x5185;&#x3002;</p>
<p><img src=".gitbook/assets/image%20%283%29.png" alt=""></p>
<p>&#x6700;&#x540E;&#xFF0C;&#x5728;&#x670D;&#x52A1;&#x5668;&#xFF0C;&#x4F7F;&#x7528;docker&#x542F;&#x52A8;&#x4E00;&#x4E2A;nginx&#xFF0C;&#x5C06;WEB_PATH&#x91CC;&#x9762;&#x7684;&#x9879;&#x76EE;&#x4E0B;&#x7684;_book&#x76EE;&#x5F55;&#x6302;&#x8F7D;&#x5230;nginx&#x4E2D;&#xFF0C;&#x4E00;&#x6761;&#x547D;&#x4EE4;&#x89E3;&#x51B3;&#x3002;</p>
<pre><code class="lang-text">docker run -p 4000:80 --name gitbook -d nginx -v /whx/note/_book:/usr/share/nginx/html
</code></pre>
<h2 id="&#x4E94;&#x3001;&#x6D41;&#x7A0B;&#x56FE;&#x4E0E;&#x603B;&#x7ED3;">&#x4E94;&#x3001;&#x6D41;&#x7A0B;&#x56FE;&#x4E0E;&#x603B;&#x7ED3;</h2>
<p><img src=".gitbook/assets/wei-ming-ming-wen-jian.png" alt=""></p>
<p>&#x4E0D;&#x9700;&#x8981;&#x5173;&#x6CE8;markdown&#x6587;&#x4EF6;&#x7684;&#x8BED;&#x6CD5;&#x4E0E;html&#x7684;&#x60C5;&#x51B5;&#xFF0C;&#x4F7F;&#x7528;gitbook&#x5B98;&#x7F51;&#x7684;&#x65B9;&#x5F0F;&#x5199;&#x6587;&#x6863;&#xFF0C;&#x6700;&#x540E;&#x6258;&#x7BA1;&#x5728;github&#x4E0A;&#x9762;&#xFF0C;&#x4F7F;&#x7528;git&#x5206;&#x5E03;&#x5F0F;&#x7684;&#x7406;&#x5FF5;&#xFF0C;&#x4FBF;&#x4E8E;&#x7F51;&#x7AD9;&#x7684;&#x8FC1;&#x79FB;&#x3002;</p>
<p>&#x53EF;&#x60DC;&#x7684;&#x662F;&#x672A;&#x7528;&#x5230;github&#x4E0A;&#x9762;&#x7684;CI/CD&#xFF0C;&#x5728;&#x672C;&#x5730;&#x8FDB;&#x884C;&#x624B;&#x52A8;&#x7684;&#x96C6;&#x6210;&#x3002;</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="untitled.html" class="navigation navigation-prev navigation-unique" aria-label="Previous page: 小技巧">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"CI/CD","level":"1.8","depth":1,"previous":{"title":"小技巧","level":"1.7","depth":1,"path":"untitled.md","ref":"untitled.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"ci-cd.md","mtime":"2019-09-29T10:48:34.405Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-09-30T03:42:42.849Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

